const {
  override,
  fixBabelImports, // 按需加载配置
  addWebpackAlias, // 添加别名配置
} = require('customize-cra')
const path = require('path')

module.exports = override(
  // antd-mobile按需加载 - babel-plugin-import
  fixBabelImports('import', {
    libraryName: 'antd',
    style: 'css'
  }),
  addWebpackAlias({
    "@": path.join(__dirname, 'src'),
    "@pages": path.join(__dirname, 'src/pages'),
    "@c": path.join(__dirname, 'src/components')
  })
)
